<%@page import="models.User"%>
<% User user = (User)request.getAttribute("user"); %>

<h1>Login</h1>
<form action="<%=request.getContextPath()%>/site/login" id="login-form" method="POST">
    <table class="form">
        <tr>
            <td style="width: 100px;"><label>Email</label></td><td><input type="text" name="email" value="<%=user.email%>" /></td>
        </tr>
        <tr>
            <td><label>Password</label></td><td><input type="password" name="password" value="<%=user.password%>" /></td>
        </tr>
        <tr>
            <td></td><td class="red"><%=user.getError("password")%></td>
        </tr>
        <tr>
            <td></td><td><input type="submit" value="Login" /></td>
        </tr>
    </table>
</form>